﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Remoting
{
    class CacheRemotingSetting : IRemotingCacheSetting
    {
        string settingName;
        RemotingCacheMode cacheMode = RemotingCacheMode.ShallowCache;
        int timeSpan = -1;
        int capacity = 50;

        public CacheRemotingSetting()
        {
        }

        public CacheRemotingSetting(string settingName)
        {
            this.settingName = settingName;
        }

        public int Capacity
        {
            get { return capacity; }
            set { capacity = value; }
        }

        public string SettingName
        {
            get { return settingName; }
            set { settingName = value; }
        }

        public RemotingCacheMode CacheMode
        {
            get { return cacheMode; }
            set { cacheMode = value; }
        }

        public int TimeSpan
        {
            get { return timeSpan; }
            set { timeSpan = value; }
        }
    }
}
